<template>
    <div>
        <div class="main"
             v-if="fatherComponent == 'show'">
            <router-view></router-view>
        </div>

        <div class="main"
             v-if="fatherComponent == 'admin'">
            <router-view></router-view>
        </div>

    </div>
</template>

<script>
export default {
    props: ['fatherComponent'],
}
</script>


<style lang="less" scoped>
.main {
    background: none repeat scroll 0 0 #fff;
    position: absolute;
    left: 250px;
    right: 0;
    top: 60px;
    bottom: 0;
    width: auto;
    padding: 10px;
    box-sizing: border-box;
    overflow-y: scroll;
}
</style>